package com.demo.search.service;

import com.demo.search.model.NBAPlayer;
import java.io.IOException;
import java.util.List;
import java.util.Map;

public interface NBAPlayerService {
    
    boolean addPlayer(NBAPlayer player, String id) throws IOException;
    
    Map<String, Object> getPlayer(String id) throws IOException;
    
    boolean updatePlayer(NBAPlayer player, String id) throws IOException;
    
    boolean deletePlayer(String id) throws IOException;
    
    boolean deleteAllPlayer() throws IOException;
    
    List<NBAPlayer> searchMatch(String key, String value) throws IOException;
    
    List<NBAPlayer> searchTerm(String key, String value) throws IOException;
    
    List<NBAPlayer> searchMatchPrefix(String key, String value) throws IOException;
    
    /**
     * 多个字段查询桶数据
     */
    void searchAggregation() throws IOException;
    
    
    /**
     * 游标查询
     */
    void searchScroll();
    
    
    /**
     * 高亮查询
     */
    void searchHighlight() throws IOException;
    
    
}
